#include <cstdio>
#include <ctime>
#include <fmt/format.h>
#include <iostream>
#include <source_location>

using namespace std;

void logMessage(string_view message,
                const source_location &location = source_location::current()) {
  std::cout << fmt::format("{}:{}  {}  {}", location.file_name(),
                           location.line(), location.function_name(), message)
            << std::endl;
}

void foo() { logMessage("starting execute function of foo()"); }
int main() { foo(); }